﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Menu.ascx.cs" Inherits="Admin_Controls_Menu" %>
<asp:Repeater ID="repMenu" runat="server">
    <ItemTemplate>
        <div class="sidebar">
            <div class="title">
                <div>
                    <div>
                        <h2>
                            <%# Eval("MenuName") %></h2>
                    </div>
                </div>
            </div>
            <div class="sidebar-content">
                <ul>
                    <asp:Repeater ID="repMenu1" runat="server" DataSource='<%# getMenu(Eval("Id").ToString()) %>'>
                        <ItemTemplate>
                            <li><a href='<%# Eval("Url") %>' title='<%# Eval("MenuName") %>'>
                                <%# Eval("MenuName") %></a></li>
                        </ItemTemplate>
                    </asp:Repeater>
                </ul>
            </div>
        </div>
    </ItemTemplate>
</asp:Repeater>
